<table class="table table-bordered" id="tbmain">
    <thead>
    <tr>
        <th>权限组名称</th>
        <th>状态</th>
        <th>排序</th>
        <th width="20%">操作</th>
    </tr>
    </thead>
    <tbody>
    <notempty name="datalist['lists']">
        <volist name="datalist['lists']" id="m">
            <tr>
                <td>{$m['title']}</td>
                <td>
                    <if condition="$m['status'] eq 1">
                        启用
                        <else/>
                        禁止
                    </if>
                </td>
                <td>{$m['sort']}</td>
                <td>
                    <a href="javascript:;" onclick="_es_openDilogMiddle('{:U('Auth/auth_group_add',array('id'=>$m['id'],'is_add'=>1))}','编辑权限组','bianjiquanxianzu')" class="btn btn-success btn-sm">编辑权限组</a>
                    &nbsp;
                    <a href="javascript:;" onclick="delete_ok({$m['id']})" class="btn btn-danger  btn-sm">删除</a>

                </td>
            </tr>
        </volist>
        <else/>
        <tr>
            <td colspan="4" align="center">暂无数据!</td>
        </tr>
    </notempty>

    </tbody>
</table>
<table bgcolor="#fff" style="width: 100%;">
    <tr>
        <td colspan="60%"></td>
        <td align="right">
            <div class="page_list_ops dataTables_paginate paging_bootstrap pagination" >
                {$datalist['page_html']}
            </div>
        </td>
    </tr>
</table>
<script type="text/javascript">
    $(function(){
        $("#tbmain tr").hover(function(){
            $(this).css({"background-color":"rgba(243, 236, 236, 0.72)"});
        },function(){
            $(this).css({"background-color":"#fff"});
        });
    });
</script>